#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
#include<stdbool.h>
#include<stdlib.h>

typedef int STDatatype;
typedef struct STQueenNode {
	struct STQueenNode* next;
	STDatatype data;
}QNode;

typedef struct Queen {
	QNode* phead;
	QNode* ptail;
	int size;
}Queue;

void QueueInit(Queue* pq);
void QueueDestroy(Queue* pq);
void Queuepush(Queue* pq, STDatatype);
void QueuePop(Queue* pq);
bool QueueEmpty(Queue* pq);
STDatatype QueueFront(Queue* pq);
STDatatype QueueBack(Queue* pq);
int Queuesize(Queue* pq);